package com.yowasa.xiuxian.engine.item.lingyao;

import com.yowasa.xiuxian.annoations.Item;
import com.yowasa.xiuxian.engine.item.ItemInterface;
import com.yowasa.xiuxian.entity.bo.user.UserAttr;
import com.yowasa.xiuxian.entity.bo.user.UserBO;
import com.yowasa.xiuxian.entity.enums.ElementEnum;
import com.yowasa.xiuxian.entity.enums.ItemTypeEnum;
import com.yowasa.xiuxian.exception.HandlerException;
import org.apache.commons.lang3.StringUtils;


@Item(name = "洗髓丹", type = ItemTypeEnum.LING_YAO, price = 10000)
public class XiSuiDan implements ItemInterface {

    @Override
    public String desc() {
        return "重随灵根";
    }

    @Override
    public String effect(UserBO userBO) {
        userBO.setElement(ElementEnum.genLingGen());
        return "灵根已经重制,请自行查看";
    }

}
